# Contributor: Jochem Kossen <j.kossen@home.nl>
# Maintainer: Hugo Doria <hugo@archlinux.org>

pkgname=id3v2
pkgver=0.1.12
pkgrel=6
pkgdesc="Utility to edit id3v2 tags"
arch=('loong64' 'x86_64')
url="http://id3v2.sourceforge.net/"
license=('LGPL')
depends=('gcc-libs' 'glibc' 'id3lib' 'zlib')
source=("https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz")
sha512sums=('f9c74ab6ffbb50ab7ae7af64dcde78a0766bcbf71308d4c9fb480543b5790e2690ae096d6a2ecaffb01b7497a18841b5235500177cf5eaa8e668cf443abc726a')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make clean
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  install -d -m755 "${pkgdir}"/usr/{bin,share/man/man1}
  make PREFIX="${pkgdir}/usr" install
}
